package com.ts.feign.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ts.feign.dto.TopicDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "ts-content", path = "/topic",contextId = "topic")
public interface TopicService {

    @PostMapping("/page")
    public Page<TopicDTO> page(@RequestBody Page<TopicDTO> page);
}
